<?php
/**
 * Created by 1971599474@qq.com
 * User: zhixuan
 * Date: 2019/12/15
 * Time: 15:20
 */

namespace app\common\model;


use app\common\traits\ModelTrait;
use think\Exception;


class Manage extends BaseModel
{

    protected $pk = 'id';
    protected $name = 'manage';

    use ModelTrait;
    protected $autoWriteTimestamp = true;
    protected $dateFormat = 'Y-m-d';
    protected $createTime = 'create_time';
    protected $updateTime = 'update_time';


    public function roleDetail(){
        return $this->hasOne('app\common\model\Role','id','role_id');
    }
}
